package com.qf.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
public class XxlJobDemo {

    //指定任务名称
    @XxlJob("test-job")
    public void job() {
        System.out.println("执行了。。。。。" + new Date());
    }
}
